package io.github.talelin.latticy.dto.ag.building;
import lombok.Data;

import javax.validation.constraints.*;

@Data
public class CreateOrUpdateBuildingDTO {
    @NotEmpty(message = "必须传入楼栋名字")
    private String name;
    @NotEmpty(message = "必须传入楼栋位置")
    private String local;
    @NotEmpty(message = "必须传入楼栋坐标")
    private String coordinates;
    @Size(max = 20,message = "管理员名字长度最大为20")
    private String manager;
    private String phone;
}
